SRCS = u_thread.cpp udpserver.cpp udpunit.cpp usocket.cpp
OBJS = u_thread.o udpserver.o udpunit.o usocket.o
HDRS = ../define/define.h
LIBUTILS = libudp.a

CC = g++
CFLAGS = -c -g
INCLUDES = ../define
%.o : %.cpp
	$(CC) $(CFLAGS) -I$(INCLUDES) $< $(LDFLAGS) -o  $@

$(LIBUTILS): $(OBJS)
	ar -cr $(LIBUTILS) $(OBJS)
	ranlib $(LIBUTILS)

clean:
	rm -f *.o *.a
